package com.yipinhouse.signing.common;

import com.yipinhouse.common.resultcode.ResultCode;


public enum SigningResultCode implements ResultCode {

    LOCK_FAILED(6000, "redis枷锁失败！"),
    HOUSE_NOT_EXISTS(6001, "房源不存在！"),
    HOUSE_ORDERED(6002, "房源已被他人预定！"),
    HOUSE_NOT_ORDERED(6003,"房源未被预定！"),
    CONTRACT_NOT_EXISTS(6004,"合同不存在！"),
    INTENTION_NOT_EXISTS(6005,"意向金记录不存在！")

    ;

    private int code;
    private String message;

    private SigningResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
